// 获取帖子
import request from '@/http/request'

export const getPosts = (params) => {
    return request({
        method: 'get',
        url:'/posts',
        params
    })
}

export const submitPosts = (formData) => {
    return request({
        method: 'post',
        url: '/posts',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        body: formData,
    })
}